package com.example.weatherreport.utils;

public class WeekdayConverter {

    private static final String[] CHINESE_WEEKDAYS = { "周日","周一", "周二", "周三", "周四", "周五", "周六"};

    public static String convertToChinese(int weekday) {
        if (weekday < 1 || weekday > 7) {
            throw new IllegalArgumentException("Invalid weekday number: " + weekday);
        }
        return CHINESE_WEEKDAYS[weekday-1];
    }
}

